﻿//-----------------------------------------------------------------------
// <copyright file="ApplicationDataContainerExtensions.cs" company="Microsoft Corporation">
//     Copyright Microsoft Corporation. All Rights Reserved. This code released under the terms of the Microsoft Public License (MS-PL, http://opensource.org/licenses/ms-pl.html.) This is sample code only, do not use in production environments.
// </copyright>
//-----------------------------------------------------------------------
namespace vsarFlightPlan.Utilities
{
    using Windows.Storage;

    /// <summary>
    ///
    /// </summary>
    public static class ApplicationDataContainerExtensions
    {
        /// <summary>
        /// Reads the specified container.
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="container">The container.</param>
        /// <param name="key">The key.</param>
        /// <param name="default">The default.</param>
        /// <returns></returns>
        public static T Read<T>(this ApplicationDataContainer container, string key, T @default)
        {
            return SettingUtils.Read(container, key, @default);
        }
    }
}